//
//  SEGActivityWinRecordView.h
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/8/18.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SEGActivityLotteryUsersModel.h"

/**
 中奖记录视图类型
 */
typedef NS_ENUM(NSUInteger, SEGWinReocordViewType) {
    SEGWinReocordViewType_Lottery = 0, /*抽奖类活动*/
    SEGWinReocordViewType_Trigger = 1, /*触发类活动*/
    SEGWinReocordViewType_RedPackage = 2 /*红包*/
};

static CGFloat kLotteryTextFont = 13.0;
static CGFloat kLotteryPadding = 15.0;

static CGFloat kTriggerTextFont = 13.0;
static CGFloat kTriggerPadding = 10.0;

@interface SEGActivityWinRecordView : UIView

@property (nonatomic, strong) NSArray<SEGActivityLotteryUsersModel*> *lotteryModelArray;
- (instancetype)initWithFrame:(CGRect)frame type:(SEGWinReocordViewType)type dataSouce:(NSArray <SEGActivityLotteryUsersModel *>*)dateSouce;

@end


@interface SEGActivityWinRecordSubView : UIView

- (void)updateUIWithModel:(SEGActivityLotteryUsersModel *)model type:(SEGWinReocordViewType)type;

@end
